package com.aaa.javaweb.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Ydcl {
    private Integer id;
    private String name;
    private Integer tel;
    private String tname;
    private Integer count;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date rzdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date leavedate;
    private  Integer yj;

    public Ydcl(Integer id, String name, Integer tel, String tname, Integer count, Date rzdate, Date leavedate, Integer yj) {
        this.id = id;
        this.name = name;
        this.tel = tel;
        this.tname = tname;
        this.count = count;
        this.rzdate = rzdate;
        this.leavedate = leavedate;
        this.yj = yj;
    }

    public Ydcl() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTel() {
        return tel;
    }

    public void setTel(Integer tel) {
        this.tel = tel;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getRzdate() {
        return rzdate;
    }

    public void setRzdate(Date rzdate) {
        this.rzdate = rzdate;
    }

    public Date getLeavedate() {
        return leavedate;
    }

    public void setLeavedate(Date leavedate) {
        this.leavedate = leavedate;
    }

    public Integer getYj() {
        return yj;
    }

    public void setYj(Integer yj) {
        this.yj = yj;
    }

    @Override
    public String toString() {
        return "Ydcl{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel=" + tel +
                ", tname='" + tname + '\'' +
                ", count=" + count +
                ", rzdate=" + rzdate +
                ", leavedate=" + leavedate +
                ", yj=" + yj +
                '}';
    }
}
